package com.lee9213.demo.biz.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lee9213.demo.biz.IDemoBiz;
import com.lee9213.demo.biz.IUserBiz;
import com.lee9213.demo.dao.IDemoDao;
import com.lee9213.demo.dao.IUserDao;
import com.lee9213.demo.entity.UserEntity;

/**
 * @author lee9213@163.com
 * @version 1.0
 * @date 2017-11-08 21:59
 */
@Service
public class UserBizImpl implements IUserBiz {

    @Autowired
    private IUserDao userDao;

    @Autowired
    private IDemoDao demoDao;

    @Override
    public Integer update(UserEntity userEntity) {
        return userDao.update(userEntity);
    }

    @Override
    public List<UserEntity> list(UserEntity userEntity) {
        userDao.list();
        demoDao.list();
        return null;
    }

    @Override
    public Long save(UserEntity entity) {
        return userDao.save(entity);
    }

}
